﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using OConf.IBLL;
using OConf.Model;
using OConf.Model.Common;

namespace OConf.API.Controllers
{
    [Authorize]
    [Route("api/[Controller]/[Action]")]
    [ApiController]
    public class LoginLogController : ControllerBase
    {
        private readonly ILoginLogBLL _loginLogBLL;

        public LoginLogController(ILoginLogBLL loginLogBLL)
        {
            _loginLogBLL = loginLogBLL;
        }

        /// <summary>
        /// 分页获取管理员登录记录列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [HttpGet]
        public ReturnData<ReturnTableData<LoginLogPageModel>> QueryLoginLogPageList([FromQuery] QueryLoginLogPageListInput input)
        {
            return _loginLogBLL.QueryLoginLogPageList(input);
        }
    }
}